module(...,package.seeall)

require"http"

local function cbFnc(result,prompt,head,body)
    log.info("testHttp.cbFnc",result,prompt)

    if result and body then
        log.info("testHttp.cbFnc","bodyLen="..body:len())
    end
end

local function testPost()
    http.request("POST","http://120.79.164.77:8080/post_test/post_test.php",nil,nil,"UserID=0912&Password=0192",30000,cbFnc,nil)
end

sys.timerLoopStart(testPost, 6000)